#coding:utf-8

from flask import Flask, render_template
from subprocess import check_output 

app = Flask(__name__)

@app.route('/')
def index():
    return render_template('index.html',)

#图书详情
@app.route('/details', methods = ['POST'])
def details():
    info = "THIS is details" 
    return info 

#投票
@app.route('/ratings', )
def ratings():
    info = {}
    return info 

#书评
@app.route('/reviews', methods = ['POST'])
def reviews():
    info = "THIS is reviews" 
    return info 

#版本
@app.route('/version', methods = ['POST'])
def version():
    info = open('version').read()
    return info 
